package com.baichen.spring;

@Component
public class HiBeanProcesser implements BeanPostProcesser {
    @Override
    public Object beforeInitializeBean(Object bean, String beanName) {
        System.out.println("hi beforeInitializeBean: " + beanName);
        return bean;
    }

    @Override
    public Object afterInitializeBean(Object bean, String beanName) {
        System.out.println("hi afterInitializeBean: " + beanName);
        return bean;
    }
}
